package com.yuw.io.objectstreamdemo;

import java.io.Serializable;

public class Student implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	// 属性
	private String stuName;
	private transient String stuNo;
	private String stuSex;
	private int stuAge;
	// 行为

	public void doStuding() {
		System.out.println(this.getStuName() + " is studing...");
	}

	public Student() {
		super();
	}

	public Student(String stuName, String stuNo, String stuSex, int stuAge) {
		super();
		this.stuName = stuName;
		this.stuNo = stuNo;
		this.stuSex = stuSex;
		this.stuAge = stuAge;
	}

	public String getStuName() {
		return stuName;
	}

	public void setStuName(String stuName) {
		this.stuName = stuName;
	}

	public String getStuNo() {
		return stuNo;
	}

	public void setStuNo(String stuNo) {
		this.stuNo = stuNo;
	}

	public String getStuSex() {
		return stuSex;
	}

	public void setStuSex(String stuSex) {
		this.stuSex = stuSex;
	}

	public int getStuAge() {
		return stuAge;
	}

	public void setStuAge(int stuAge) {
		this.stuAge = stuAge;
	}

	@Override
	public String toString() {
		return "Student [stuName=" + stuName + ", stuNo=" + stuNo + ", stuSex=" + stuSex + ", stuAge=" + stuAge + "]";
	}

	
}
